﻿
modules.component('actions', {
  templateUrl: '/app/app-portal/components/actions/actions.html',
  controller: ['$rootScope', '$scope', '$location', function ($rootScope, $scope, $location) {
    var ctrl = this;
    ctrl.translate = function (keyword) {
      return $rootScope.translate(keyword);
    };
    ctrl.back = function () {
      ctrl.backUrl = ctrl.backUrl || '/admin';
      $location.url(ctrl.backUrl);
    };
  }],
  bindings: {
    previewUrl: '=',
    backUrl: '=',
    contentUrl: '=',
  }
});